package com.ibm.spatiotemp.server.exceptions;

public class ServerException extends Exception {
	private static final long serialVersionUID = -8519131676276734355L;
	private String errMsg;
	private int errCode;

	public ServerException(int code, String message) {
		errMsg = message;
		errCode = code;
	}

	public int getErrorCode() {
		return errCode;
	}

	public String getErrorMessage() {
		return errMsg;
	}

	@Override
	public String getMessage() {
		return "ErrorCode: " + errCode + "; Message: " + errMsg;

	}

}
